/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;

}

/* 页面容器 */
.container {
    display: flex;
    min-height: 100vh;
}

/* 导航栏样式 */
.sidebar {
    width: 200px;
    background-color: #333;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    margin: 0 0 20px;
    font-size: 1.5em;
    text-align: center;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 4px;
}

.sidebar ul li a:hover {
    background-color: #555;
}

/* 内容区域 */
.content {
    flex-grow: 1;
    padding: 20px;
    background-color: white;
}

/* 居中容器（用于登录和注册页面） */
.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f4f4f4;
    background-image: url("/images/bg.webp"); /* 替换为你的图片路径 */
    background-size: cover; /* 图片填满整个页面 */
    background-repeat: no-repeat; /* 不重复 */
}

.center-form {
    width: 300px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 表单样式 */
form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin: 10px 0;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 链接样式 */
p {
    margin-top: 10px;
    text-align: center;
}

a {
    color: #2c3e50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 标题样式 */
h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}